'use strict'

const Model = use('Model')

class UserNews extends Model {
  static get table() {
    return 'user_news'
  }
  static get primaryKey() {
    return 'id'
  }
  static get createdAtColumn() {
    return 'createdAt'
  }
  static get updatedAtColumn() {
    return "updatedAt"
  }
  news() {
    return this.hasOne('App/Models/FaNews', 'newsID', 'id')
  }
}

module.exports = UserNews
